/*
 * @Descripttion:
 * @Author: zhengminjie
 * @Date: 2021-06-7 11:27:27
 * @LastEditors: zhengminjie
 * @LastEditTime: 2021-07-04 17:21:14
 */

import request from '@/utils/request'

// 创建项目
export function AddProject(data){
   return request({
     url:'/distribution/documentManager/addProject',
     method: 'post',
     data: data
   })
 }

// 搜索项目
export function searchProject(query) {
    return request({
      url: '/distribution/documentManager/searchProject',
      method: 'get',
      params: query
    })
  }

  // 上传文档
export function uploadWord(data) {
    return request({
      url: '/distribution/documentManager/upload',
      method: 'post',
      data: data
    })
  }
  
// 获取文件
export function documentList(query) {
  return request({
    url: '/distribution/documentManager/documentList',
    method: 'get',
    params: query
  })
}

// 获取群
export function getGroupList(query) {
  return request({
    url: '/distribution/documentManager/getGroupList',
    method: 'get',
    params: query
  })
}

 // 分发表格
 export function sendDocument(data){
  return request({
    url:'/distribution/documentManager/sendDocument',
    method: 'post',
    data: data
  })
}

 // 详情文件列表
 export function checkDocument(projectId){
  return request({
    url:'/distribution/documentManager/checkDocument?projectId='+projectId,
    method: 'get',
  })
}

 // 详情文件列表
 export function Change(officeId,projectId){
  return request({
    url:'/distribution/documentManager/Change?projectId='+projectId+'&officeId='+officeId,
    method: 'get',
  })
}

// 首页
export function DataValue(){
  return request({
    url:'/distribution/documentManager/DataValue',
    method: 'get',
  })
}


// 删除项目
export function Delete(projectId){
  return request({
    url:'/distribution/documentManager/Delete?projectId='+projectId,
    method: 'get',
  })
}